projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8b298
)
* src/comp.c (Fcomp__register_subr): Remove code duplication using Fdefalias.
author
Andrea Corallo
<akrl@sdf.org>
Sun, 28 Jun 2020 14:38:48 +0000
(15:38 +0100)
committer
Andrea Corallo
<akrl@sdf.org>
Sun, 28 Jun 2020 14:53:08 +0000
(15:53 +0100)
src/comp.c
patch
|
blob
|
history
diff --git
a/src/comp.c
b/src/comp.c
index bb416ecb19ac922816094af1edddb5055a428553..3abcabc8933244d677aadbe8524940665721b2b8 100644
(file)
--- a/
src/comp.c
+++ b/
src/comp.c
@@
-4780,17
+4780,7
@@
DEFUN ("comp--register-subr", Fcomp__register_subr, Scomp__register_subr,
Lisp_Object tem =
make_subr (SYMBOL_NAME (name), minarg, maxarg, c_name, doc_idx, intspec,
comp_u);
-
- LOADHIST_ATTACH (Fcons (Qdefun, name));
-
- { /* Handle automatic advice activation (bug#42038).
- See `defalias'. */
- Lisp_Object hook = Fget (name, Qdefalias_fset_function);
- if (!NILP (hook))
- call2 (hook, name, tem);
- else
- Ffset (name, tem);
- }
+ Fdefalias (name, tem, Qnil);
return tem;
}